home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 921 < prev    next >
Encoding:
Text File  |  1996-08-05  |  820 b   |  33 lines

  1. Path: news.ust.hk!ee_ckmaa
  2. From: ee_ckmaa@uxmail.ust.hk (Chan Ka Ming)
  3. Newsgroups: comp.lang.c
  4. Subject: memory allocation in Visual C++
  5. Date: 10 Jan 1996 04:04:23 GMT
  6. Organization: The Hong Kong University of Science and Technology
  7. Message-ID: <4cvds8$4pt@news.ust.hk>
  8. NNTP-Posting-Host: ustsu26.ust.hk
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. I'm writting a program which deals with a large amount of data. It's a 
  12. 16 bit program. Why I cannot allocate automatic arrays in a
  13. function as local variables which in total occupies more than 64k? I've set the
  14. memory model to "large" , though.
  15.  
  16. i.e.
  17.  
  18. main() {
  19.  
  20.     float a[88][88]; <----- each of them below 64k; but total of 3 is
  21.     float b[88][88]; <----- larger than 64k .
  22.     float c[88][88];
  23.  
  24.     // ......
  25.  
  26. }
  27.  
  28. --
  29.  
  30. If an ideal can be reached easily it no longer is an ideal.
  31. ka ming
  32.  
  33.